package xcmg.device.dao.mapper.initialInventory;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.initialInventory.InitialInventoryDetailDO;
import xcmg.device.service.vo.initialInventory.MaterialsListVO;

import java.util.List;

@Mapper
public interface InitialInventoryDetailMapper
{
    int delete(String id);

    int insert(InitialInventoryDetailDO record);

    InitialInventoryDetailDO item(String id);

    InitialInventoryDetailDO itemByNo(@Param("mainNo")String mainNo,@Param("materialsNo")String materialsNo);

    int update(InitialInventoryDetailDO record);

    int updateAfterPrint(@Param("id")String id);

    List<InitialInventoryDetailDO> list(MaterialsListVO record);

    List<InitialInventoryDetailDO> listByBillNo(String billNo);

    int updateStatus(@Param("status") int status, @Param("billNo") String billNo,@Param("materialsNo") String materialsNo,@Param("orgId") String orgId);

    List<InitialInventoryDetailDO> listByMainId(@Param("mainId") String mainId);

    List<InitialInventoryDetailDO> selectNeedInboundsByMainId(@Param("mainId") String mainId);

}